package org.ch02.test00.demo02;

import java.lang.reflect.Field;

/**
 * @author CSY
 * @date 2025 - 03 - 17
 */
public class MainTest {
    public static void main(String[] args) {
        Class<Integer> clazz = Integer.class;
        Field[] fields = clazz.getFields();
        Field[] declaredFields = clazz.getDeclaredFields();
        for (Field field : fields) {
            System.out.println(field);
        }
        for (Field declaredField : declaredFields) {
            System.out.println(declaredField);
        }
    }
}
